home *** CD-ROM | disk | FTP | other *** search
/ The Very Best of Atari Inside / The Very Best of Atari Inside 1.iso / mint / mntlib43 / mntlib / mklog < prev    next >
Text File  |  1993-10-26  |  383b  |  35 lines

  1. #! /usr/local/gnubin/gawk.ttp -f
  2.  
  3. BEGIN {
  4.     FS = ":"
  5.     wfile = ""
  6.     pmode = 0
  7. }    
  8.  
  9. $1 == "Working file" {
  10.     wfile = $2
  11.     for (i = 1; substr(wfile, i, 1) == " "; i++) {
  12.     }
  13.     wfile = substr(wfile, i, length(wfile))
  14. }
  15.  
  16. /^--*$/ {
  17.     if (pmode == 0) {
  18.         pmode = 1
  19.         print "***** DIRECTORY_NAME/" wfile
  20.     }
  21. }
  22.  
  23. /^==*$/ {
  24.     if (pmode == 1) {
  25.         pmode = 0
  26.         print
  27.     }
  28. }
  29.  
  30. {
  31.     if (pmode == 1) {
  32.         print
  33.     }
  34. }
  35.